package com.lnu.information.dto;

import com.alibaba.fastjson.JSON;

import java.io.Serializable;

/**
 * @author : jian.zhang-2
 * @description:
 * @date : Create in 10:22 AM 2022/2/16
 * @modified By :
 */
public class BaseResponseDTO implements Serializable{

    private static final long serialVersionUID = -8355988524546234263L;

    private String code;

    private String msg;

    private Integer total;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    /**
     * 重写toString使更容易查看对象的属性值
     */
    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
